package com.gaojinqi.sys.modular.rbac.vo;

import com.gaojinqi.sys.common.enums.GenderEnum;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

/**
 * 用户注册参数
 *
 * @author gaojinqi
 * @version 1.0
 * @since 2020年05月18日
 */
@Data
public class RegisterVo {

    @ApiModelProperty(value = "用户名", required = true)
    @NotBlank(message = "请输入用户名")
    private String userName;

    @ApiModelProperty(value = "密码", required = true)
    @NotBlank(message = "请输入密码")
    private String password;

    @ApiModelProperty(value = "重复密码", required = true)
    @NotBlank(message = "请输入重复密码")
    private String rePassword;

    @ApiModelProperty(value = "昵称")
    private String nickName;

    @ApiModelProperty(value = "真实名称")
    private String trueName;

    @ApiModelProperty(value = "性别", required = true)
    private Byte gender = GenderEnum.UNKNOW.getCode();

}
